<?php
/* @var $this AppointmentController */
/* @var $model Appointment */

$this->breadcrumbs=array(
	'Appointments'=>array('index'),
	$model->id,
);

$this->menu=array(
	array('label'=>'List Appointments', 'url'=>array('index'), 'visible'=>Yii::app()->getModule('user')->isAdmin()),
	array('label'=>'Create Appointment', 'url'=>array('create'), 'visible'=>Yii::app()->getModule('user')->isAdmin()),
	array('label'=>'Update Appointment', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Appointment', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?'), 'visible'=>Yii::app()->getModule('user')->isAdmin()),
	array('label'=>'Manage Appointments', 'url'=>array('admin'), 'visible'=>Yii::app()->getModule('user')->isAdmin()),
);
?>

<h1>View Appointment #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		array('label'=>'Service', 'value'=>$model->service0->name),
		'date_time_appt',
		array('label'=>'Personnel', 'value'=>$model->personnel0->first_name),
		'total_amount',
		'date_time_created',
		array('label'=>'Customer', 'value'=>$model->customer0->firstname." ".$model->customer0->lastname),
	),
)); ?>
